<template>
  <el-scrollbar height="700px">
    <Comment v-for="(comment,index) in commentData" :index="index" :comment="comment"></Comment>
  </el-scrollbar>
</template>

<script setup>
import {onMounted, ref} from "vue";
import {getCommentList} from "@/api/comment.js";
import Comment from "@/components/Comment.vue";
const commentData = ref([{
  uid:'',
  cid:'',
  content:''
}])

onMounted(()=>{
  getList()
})
function getList(){
  getCommentList().then((res)=>{
    commentData.value = res.data;
  })
}
</script>

<style scoped>

</style>
